﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Theme="SkinFile" CodeBehind="AllNewspapers.aspx.cs" Inherits="Nivdal.AllNewspapers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">   
    <div class="basic_element">
    <div class="padding5">
        <table style="width:100%;">
        <tr>
        <td style="vertical-align:top; width:30%;">
            <asp:Image ID="HyppoImage" runat="server" ImageUrl="~/Images/NewsPaper/NewspaperLogo.png"  AlternateText="<%$ Resources:Resource, AllNewsPaperLogo %>"/>
        </td>
        <td style="vertical-align:top; width:70%;">
            <h1><asp:Label ID="NewspapersList" runat="server" Text="<%$ Resources:Resource, AllNewspapers_NewsapersListTitle %>" SkinID="InfoLabel"></asp:Label></h1>
            <br />
            <asp:Repeater ID="NewspapersRepeater" runat="server" DataSourceID="NewspapersDataSource">
            <ItemTemplate >
                <asp:HyperLink ID="NewspaperHyperlink" runat="server" NavigateUrl='<%# "~/NewsPaper.aspx?Id=" + Eval("NewspaperId") %>'
                 SkinID="GreenTitleHyperLink" Text='<%# Eval("NewspaperName") %>'></asp:HyperLink>
                &nbsp;
                <asp:HyperLink ID="CountryHyperlink" runat="server" NavigateUrl='<%# "~/Country.aspx?Id=" + Eval("CountryId") %>'
                 SkinID="GreenTitleHyperLink" Text='<%# " (" + Eval("CountryName") + ")" %>'></asp:HyperLink>
            </ItemTemplate>
            <SeparatorTemplate><br /></SeparatorTemplate>
            </asp:Repeater>
            <br /><br /><br />
            <asp:Label ID="NoNewspaperInYourCountry" runat="server" Text="<%$ Resources:Resource, AllNewspapers_NoNewspaperInYourCountry%>"
             SkinID="GridLabel"></asp:Label>
        </td>
        </tr>
        </table>
        <asp:SqlDataSource ID="NewspapersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetAllNewspapersList" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
    </div>
    </div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, Newspaper_PageName %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
